package com.zyf.school.manager.service;

import com.zyf.school.manager.dao.AreaDao;
import com.zyf.school.manager.domain.Area;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AreaServiceImpl implements AreaService {

    @Autowired
    private AreaDao areaDao;

    @Override
    public List<Area> queryByTel(String tel) {
        return areaDao.queryByTel(tel);
    }
    @Override
    public List<Area> queryByParentTel(String tel) {
        return areaDao.queryByParentTel(tel);
    }
}
